//
//  Constants.h
//  OnlineClinic
//
//  Created by lv jian on 11-11-19.
//  Copyright 2011年 __MyCompanyName__. All rights reserved.
//

#ifndef CONSTANTS_H
#define CONSTANTS_H

/*
 *  Tags of Request kind
 */
typedef enum _REQUEST_TYPE{
    REQUEST_TYPE_INIREGIST,
    REQUEST_TYPE_REGIST,
    REQUEST_TYPE_INICONTACTUS,
    REQUEST_TYPE_CONTACTUS,
    REQUEST_TYPE_SYSTEMLINE,
    REQUEST_TYPE_DETAIL,
    REQUEST_TYPE_SHOPATM,
    REQUEST_TYPE_SHOPCAR,
    REQUEST_TYPE_SHOPCHECK,
    REQUEST_TYPE_QUERYCAR,
    REQUEST_TYPE_QUERYEND,
    REQUEST_TYPE_PRODUCT_INFO
}REQUEST_TYPE;

/*
 *  Tags of Request kind
 */
typedef enum _CAR_PAGE_TYPE{

    PAGE_TYPE_SHOP,
    PAGE_TYPE_QUERY

}CAR_PAGE_TYPE;

/*
 *  Tags of business transcation
 */
enum TagOfTranscation {
    TagOfTranscationTestServer  = 1 << 0,
    TagOfTranscationSymptom     = 1 << 1,
    TagOfTranscationAsk         = 1 << 2,
    TagOfTranscationAnswer      = 1 << 3,
    TagOfTranscationFindClinic  = 1 << 4,
    TagOfTranscationClinicIntro = 1 << 5,
    TagOfTranscationFindDoctor  = 1 << 6,
    TagOfTranscationDoctorIntro = 1 << 7
    };   

typedef NSUInteger TagOfTranscation;


/*
 *  Body tags
 */
enum TagOfBody {
    TagOfBodyHead           = 1,
    TagOfBodyNeck           = 2,
    TagOfBodyChest          = 3,
    TagOfBodyAbdomen        = 4,
    TagOfBodyReproductive   = 5,
    TagOfBodyExcretion      = 6,
    TagOfBodyLimbs          = 7,
    TagOfBodySkin           = 8
    };
typedef NSUInteger TagOfBody;


/**
 *  Data server URL
 */
#define kServerURL @"http://www.newweb.com.tw/newapp/www/app/app.asp"


/**
 *  unsigned long long type redeclare
 */
typedef unsigned long long ULongLongID;

/**
 *  Data dictionary
 */
#define kID             @"id"
#define kTitle          @"title"
#define kInfo           @"info"
#define kCreateAt       @"sd"
#define kImageURL       @"img"
#define kData           @"data"
#define kData2          @"data2"
#define kTopTitle       @"top_title"
#define kBigImageURL    @"b_img"
#define kStyle          @"style"
#define kItemName       @"item_name"
#define kItemNo         @"item_no"
#define kItemPrice      @"price"
#define kItemSprice     @"sprice"

/**
 *  Styles
 */
#define kStyleA     @"A"        //gallery
#define kStyleB     @"B"        //Tableview cell with left image
#define kStyleC     @"C"        //TableView cell with right image
#define kStyleD     @"D"        //TableView cell without image

/**
 *  Keys in NSUserDefaults
 */
#define kInquirePriceListKey    @"InquirePriceList"

#define kShopCarListKey @"ShopCarList"

#endif